<div>
  <form nz-form [formGroup]="validateForm">
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required>单位名称</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback>
        <nz-input [(ngModel)]="trainingPlanDetail.partyName" [nzDisabled]="true" formControlName="partyName" name="partyName"></nz-input>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required>单位类型</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback>
        <nz-select [(ngModel)]="trainingPlanDetail.partyType" [nzDisabled]="true" formControlName="partyType" name="partyType" [nzPlaceHolder]="'请选择'" >
          <nz-option *ngFor="let item of config.PARTY_TYPE" [nzLabel]="item.label" [nzValue]="item.value"></nz-option>
        </nz-select>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required>牵头单位</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback>
        <nz-input [(ngModel)]="trainingPlanDetail.leadUnit"  [nzDisabled]="true" formControlName="leadUnit" name="leadUnit"></nz-input>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required>单位安全管理员</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback>
        <nz-input [(ngModel)]="trainingPlanDetail.unitManageUser"  [nzDisabled]="true" formControlName="unitManageUser" name="unitManageUser"></nz-input>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label>调整原因</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback [nzValidateStatus]="getFormControl('adjustReason')">
        <nz-input [nzSize]="'large'" formControlName="adjustReason" [nzPlaceHolder]="'请输入调整原因'" [nzType]="'adjustReason'" [nzId]="'adjustReason'"
                  [(ngModel)]="trainingPlanDetail.adjustReason"></nz-input>
        <div nz-form-explain *ngIf="getFormControl('adjustReason').dirty&&getFormControl('adjustReason').hasError('required')">调整原因不能为空!</div>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label>调整到时间</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback>
        <nz-datepicker formControlName="adjustDate" [nzSize]="'large'" [nzFormat]="'YYYY-MM-DD'" [(ngModel)]="trainingPlanDetail.adjustDate"
                       name="adjustDate" [nzPlaceHolder]="'调整到时间'"></nz-datepicker>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-control nz-col [nzOffset]="'9'" [nzSpan]="3">
        <button nz-button class="login-form-button" [nzType]="'primary'" [nzSize]="'large'" (click)="submitForm()">修改</button>
      </div>
      <div nz-form-control nz-col [nzSpan]="2">
        <button nz-button class="login-form-button" [nzType]="'primary'" [nzSize]="'large'" (click)="quit()">取消</button>
      </div>
    </div>
  </form>
</div>
